package com.xr.miniprogram.domain.dto;

import com.xr.miniprogram.domain.MiniProgramUser;
import lombok.Data;

/**
 * 用户登录dto
 */
@Data
public class MiniProgramUserDTO {
    private String errcode;
    private String errmsg;
    private String session_key;
    private String unionid;
    private String openid;

    public MiniProgramUser toMiniProgramUser(){
        MiniProgramUser miniProgramUser = new MiniProgramUser();
        miniProgramUser.setOpenId(this.getOpenid());
        return miniProgramUser;
    }
}
